package com.csw.jdbc.service;
 
import com.csw.jdbc.entity.TbUser;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
 
 /**
 * 用户表(TbUser)表服务接口
 * @author chengshengwen
 * @description 
 * @since 2021-10-31 23:27:01
 */
public interface TbUserService {
 
    //通过ID查询
    TbUser queryById(Long id);
 
    //通过实体作为筛选条件查询
    List<TbUser> queryAll(TbUser tbUser);
 
    //新增数据
    int insert(TbUser tbUser);
 
    //修改数据
    int updateById(TbUser tbUser);
 
    //通过主键id删除数据
    int deleteById(Long id);

    //根据用户名获取用户信息
    TbUser getByUsername(String username);
 
}